/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2024-02-02
 * Time: 12:37
 *
 * https://www.nowcoder.com/share/jump/7745334641706848653648
 */
public class BM88 {

    public boolean judge(String str) {
        String str1 = new StringBuilder(str).reverse().toString();
        int n = str.length();
        for (int i = 0; i < n; i++) {
            if (str.charAt(i) != str1.charAt(i)) {
                return false;
            }
        }
        return true;
    }
}
